package org.sunrise.game.center.server;

import lombok.Getter;

public class CenterServerManager {
    @Getter
    public static CenterServer centerServer;

    public static CenterServer createCenterServer(int id, String ip, int port) {
        centerServer = new CenterServer(id, ip, port);
        return centerServer;
    }

    public static String getCenterServerNodeId() {
        if (centerServer != null) {
            return centerServer.getNodeId();
        }
        return "";
    }
}
